function [ weights ] = get_matrix_weights( )

global IMAGES;
global N;
% GET_MATRIX_WEIGHTS
%      El objetivo de este metodo es crear la matriz de pesos a partir de
%      las imagenes listadas en constants.m

weights = zeros(N, N);
images = zeros(length(IMAGES), N);
for c = 1:length(IMAGES)
    images(c,:) = load_image(IMAGES{c});
end

for i = 1:N
    for j = i+1:N
        ci = images(:,i);
        cj = images(:,j);
        weights(i,j) = sum(ci .* cj) / N;
        weights(j,i) = weights(i,j);
    end
end

end

